/*
package 每日一题;

import java.rmi.MarshalledObject;
import java.util.concurrent.locks.ReentrantLock;

*/
/**
 * @author chenhong
 * @version 1.0
 * @description TODO
 * @date 2023/5/3 11:03
 *//*

public class L1003 {
    public static void main(String[] args) {
        new L1003().isValid("abcccc");
    }
    public boolean isValid(String s) {
        if(s.length() % 3 != 0)
            return false;
        int []map = new int[3];
        for (int i = 0; i < s.length(); i++) {
            map[s.charAt(i) - 'a']++;
        }
       if(!(map[0] == map[1] && map[1] == map[2]))
           return false;

       return false;
}
*/
